// Created by Amit Kumar Mudgal - MicroStrategy Principal Consultant for American Express GMS group on 4/28/2014
// GMS wanted to have multiple property files for different environemts
package com.AmericanExpress.FileOps;

import java.util.Locale;
import java.util.ResourceBundle;

public class ResourceBundles {

	public static ResourceBundle ResourceBundles(String FileName) {
		System.out.println("enter into ResourceBundles() function===");
		Locale defaultLocale = Locale.getDefault();
		ResourceBundle rb = ResourceBundle.getBundle(FileName,defaultLocale);
/*		Enumeration <String> keys = rb.getKeys();
		System.out.println("inside resource bundles " + FileName);
		String[][] FileValues = new String[20][2]; int i=0;
		while (keys.hasMoreElements()) {
			String key = keys.nextElement();
			FileValues[i][0] = keys.nextElement();
			FileValues[i][1] = rb.getString(key);
			System.out.println(FileValues[i][0] + FileValues[i][1]);
			i++;
		}*/
		return rb;
	}

}
